package StudyCode.summary.BufferAndChannel;

import java.nio.ByteBuffer;
import java.nio.FloatBuffer;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ByteBufferToFloatBuffer {
	public static void main(String[] argv) {
		ByteBuffer buf = ByteBuffer.allocate(15);
		System.out.println("ByteBuffer: " + buf);
		FloatBuffer floatBuffer = buf.asFloatBuffer();
		System.out.println("FloatBuffer: " + floatBuffer.get());
	}
}
